﻿<%@ Page Title="Log In" Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" EnableTheming = "false"
    Inherits="CLab.Account.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Styles/Login.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" runat="server">
    <ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/ajaxload.js" />
            <asp:ScriptReference Path="~/Scripts/site.js" />
        </Scripts>
    </ajax:ToolkitScriptManager>
    <div class="divCenter"> 
        <div class="DivTitulo">
            Laboratorio de Analisis Clinicos Demo
        </div>
        <div class="divVentana">
        <asp:Login ID="LoginUser" runat="server" EnableViewState="false" 
                RenderOuterTable="false">
            <LayoutTemplate>
                <div class="accountInfo">
                    <fieldset class="login">
                        <legend>Inicio de sesión</legend>
                        <p>
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label>
                            <asp:TextBox ID="UserName" runat="server" Width="320px" MaxLength="20"
                                TabIndex="1" CssClass="textbox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Contraseña:</asp:Label>
                            <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="textbox"
                                Width="320" MaxLength="20" TabIndex="2"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <%--<p>
                            <asp:CheckBox ID="RememberMe" runat="server" />
                            <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Seguir conectado</asp:Label>
                        </p>--%>
                    </fieldset>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <p class="submitButton">
                                &nbsp;<asp:Button ID="LoginButton" runat="server" CssClass="boton" CommandName="Login"
                                    Text="Iniciar" ValidationGroup="LoginUserValidationGroup" OnClick="LoginButton_Click" />
                            </p>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div style="display:none">
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" />
                <span class="failureNotification">
                    <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                </span></div>
            </LayoutTemplate>
        </asp:Login>
        </div>
    </div>
    </form>
</body>
</html>
